<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Students</title>
</head>
<body>
    <h1>
        学生表：
    </h1>
    <a href="/student_add">
        <button>添加</button>
    </a>
    <table border="1">
        <thead>
            <tr>
                <th>ID</th>
                <th>姓名</th>
                <th>身高</th>
                <th>体重</th>
                <th>年龄</th>
            </tr>
        </thead>
        <tbody>
        {% for obj in data_list %}
            <tr>
<!--                这段循环我也不知道为什么没有运行起来-->
<!--                {% for k, v in obj.items %}-->
<!--                    <td>{{ v }}</td>-->
<!--                {% endfor %}-->
                <td>{{ obj.id }}</td>
                <td>{{ obj.name }}</td>
                <td>{{ obj.height }}</td>
                <td>{{ obj.weight }}</td>
                <td>{{ obj.age }}</td>
                <td><a href="/student_del?nid={{obj.id}}"><button>删除</button></a></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</body>
</html>
